-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kvserver: deflake TestRequestsOnFollowerWithNonLiveLeaseholder #107442
kvserver: deflake TestRequestsOnFollowerWithNonLiveLeaseholder #107442
Conversation
They're too verbose and the metrics will already make it clear when things aren't set up properly.
This can be triggered rapidly because each replica might call this as it tries and fails to acquire a lease.
The `Inc` is the blocking part, so log before.
…eLeaseholder The test previously relied on aggressive liveness heartbeat expirations to avoid running for too long. As a result, it was flaky since liveness wasn't reliably pinned in the way the test wanted. The hybrid manual clock allows time to jump forward at an opportune moment. Use it here to avoid running with a tight lease interval. On my gceworker, previously flaked within a few minutes. As of this commit, I ran it for double-digit minutes without issue. Fixes cockroachdb#107200. Epic: None Release note: None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're here, mind changing the test to use t.Logf
instead of log.Infof()
?
It was actually useful to have this in the logs, since then it interleaves with the actual logs. Otherwise, you don't get timestamps and you're left wondering about the relative ordering. TFTR! bors r=erikgrinaker |
Build succeeded: |
The test previously relied on aggressive liveness heartbeat expirations to
avoid running for too long. As a result, it was flaky since liveness wasn't
reliably pinned in the way the test wanted.
The hybrid manual clock allows time to jump forward at an opportune moment.
Use it here to avoid running with a tight lease interval.
On my gceworker, previously flaked within a few minutes. As of this commit, I
ran it for double-digit minutes without issue.
Fixes #107200.
Epic: None
Release note: None